package com.pet.platform.dto;

import lombok.Data;
import java.math.BigDecimal;
import java.util.List;

@Data
public class DashboardStatsDTO {
    private Long totalUsers;
    private Long totalOrders;
    private BigDecimal totalSales;
    private Long totalAppointments;
    
    // 增长率字段
    private BigDecimal userGrowthRate;
    private BigDecimal orderGrowthRate;
    private BigDecimal salesGrowthRate;
    private BigDecimal appointmentGrowthRate;

    // 销售趋势数据
    private List<SalesTrendDTO> salesTrend;
    
    // 商品类别分布数据
    private List<CategoryDistributionDTO> categoryDistribution;

    @Data
    public static class SalesTrendDTO {
        private String date;
        private BigDecimal amount;
    }

    @Data
    public static class CategoryDistributionDTO {
        private String name;
        private BigDecimal value;
    }
} 